//
//  MWE_layout.h
//  UI_27自定义layout
//
//  Created by 恩叔 on 16/1/13.
//  Copyright © 2016年 www.lanou3g.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MWE_layout;

@protocol MWE_LayoutItemHeightDelegate <NSObject>

//参数1:layout
//参数2:位置信息
//参数3:item宽度
- (CGFloat)layout:(MWE_layout *)layout heightForItemAtIndexPath:(NSIndexPath *)indexPath width:(CGFloat)width;

@end

@interface MWE_layout : UICollectionViewLayout


@property (nonatomic, assign)NSInteger columCounts;/**<列数*/
//影响item(x, y, w, h)的布局属性
@property (nonatomic, assign)NSInteger columSparce;/**<列间距*/
@property (nonatomic, assign)NSInteger rowSparce;/**<行间距*/
@property (nonatomic, assign)UIEdgeInsets edgtInsets;/**<边距*/
@property (nonatomic, assign)id<MWE_LayoutItemHeightDelegate> delegate;
@end
